////
////  NetworkTools.m
////  UEAssistant
////
////  Created by mac on 2017/10/24.
////  Copyright © 2017年 youyixinxi. All rights reserved.
////
//
//#import "NetworkTools.h"
//
//@interface NetworkTools (){
//
//    NSString        *_typePath;
//}
//
//@property (nonatomic, strong) id    orderList;
//@property (nonatomic, strong) id    orderIngList;
//@property (nonatomic, strong) id    platOrderList;
//@property (nonatomic, strong) id    platOrderIngList;
//
//@end
//
//@implementation NetworkTools
//
//- (NSURLSessionTask *)getOrderListDataWithParam:(NSDictionary *)param{
//
//    NSURLSessionTask *task =  [AvailableNetWorking postWithUrl:[YhxUtility replaceTypePath:orderList_connector] params:param successHandler:^(id responseObject) {
//
//        if ([responseObject[@"code"] intValue] == 200) {
//            self.orderList = responseObject[@"result"];
//        }else{
//            [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//            [TopAlertView SetUpbackgroundColor:AlertRedColor andStayTime:2.0 andImageName:@"imagePlaceholder" andTitleStr:responseObject[@"message"] andTitleColor:[UIColor whiteColor] andCancel:NO];
//        }
//    } falureHandler:^(NSError *error) {
//        [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//    }];
//    return task;
//}
//
//- (NSURLSessionTask *)getOrderIngListDataWithParam:(NSDictionary *)param{
//
//    NSURLSessionTask *task = [AvailableNetWorking postWithUrl:[YhxUtility replaceTypePath:taskList_connector] params:param successHandler:^(id responseObject) {
//
//        if ([responseObject[@"code"] intValue] == 200) {
//            TGLog(@"self.orderIngList == %@",responseObject[@"result"]);
//            self.orderIngList = responseObject[@"result"];
//        }else{
//            [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//            [TopAlertView SetUpbackgroundColor:AlertRedColor andStayTime:2.0 andImageName:@"imagePlaceholder" andTitleStr:responseObject[@"message"] andTitleColor:[UIColor whiteColor] andCancel:NO];
//        }
//    } falureHandler:^(NSError *error) {
//        [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//    }];
//    return task;
//}
//
//- (NSURLSessionTask *)getPlatOrderListDataWithParam:(NSDictionary *)param{
//
//    NSURLSessionTask *task =  [AvailableNetWorking postWithUrl:[YhxUtility replaceTypePath:platWaitOrderList_connector] params:param successHandler:^(id responseObject) {
//
//        TGLog(@"responseObject == %@",responseObject);
//        if ([responseObject[@"code"] intValue] == 200) {
//            self.platOrderList = responseObject[@"result"];
//        }else{
//            [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//            [TopAlertView SetUpbackgroundColor:AlertRedColor andStayTime:2.0 andImageName:@"imagePlaceholder" andTitleStr:responseObject[@"message"] andTitleColor:[UIColor whiteColor] andCancel:NO];
//        }
//    } falureHandler:^(NSError *error) {
//        [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//    }];
//    return task;
//}
//
//- (NSURLSessionTask *)getPlatOrderIngListDataWithParam:(NSDictionary *)param{
//
//    NSURLSessionTask *task = [AvailableNetWorking postWithUrl:[YhxUtility replaceTypePath:platIngOrderList_connector] params:param successHandler:^(id responseObject) {
//
//        if ([responseObject[@"code"] intValue] == 200) {
//            TGLog(@"self.orderIngList == %@",responseObject[@"result"]);
//            self.platOrderIngList = responseObject[@"result"];
//        }else{
//            [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//            [TopAlertView SetUpbackgroundColor:AlertRedColor andStayTime:2.0 andImageName:@"imagePlaceholder" andTitleStr:responseObject[@"message"] andTitleColor:[UIColor whiteColor] andCancel:NO];
//        }
//    } falureHandler:^(NSError *error) {
//        [JeemaaNotificationCenter postNotificationName:@"hiddenLSProgressHUD" object:nil];
//    }];
//    return task;
//}
//
//@end

